<div class="header_menu">
    <div class="container">
        <div class="header-nav clearfix">
            <?php echo $this->partial('shop/layout/headerMenu'); ?>
        </div>
    </div>
</div>
</div>
<div class="container breadcrumbs">
    <a href="<?php echo $this->url('shop'); ?>"><?php echo $this->translate('首页'); ?></a>
    <span class="sep">/</span><span><?php echo $this->translate('账户绑定'); ?></span>
</div>
<div class="container">
    <div class="uc-full-box">
        <div class="row">
            <div class="span4">
                <?php echo $this->partial('shop/partial/home/leftMenu'); ?>
            </div>
            <div class="span16">
                <div class="xm-line-box uc-box uc-order-detail-box">
                    <div class="box-hd">
                        <h3 class="title">
                            <?php echo $this->translate('账户绑定'); ?>
                        </h3>
                        <?php echo $this->partial('shop/partial/home/userMenu'); ?>
                    </div>
                    <div class="box-bd">
                        <?php echo $this->partial('shop/message'); ?>
                        <?php if (!empty($this->enableLogin)) { ?>
                            <table class="table table-bordered table-hover" style="margin-top: 15px;">
                                <thead>
                                <tr>
                                    <th width="80%"><?php echo $this->translate('第三方账户'); ?></th>
                                    <th width="20%"><?php echo $this->translate('操作'); ?></th>
                                </tr>
                                </thead>
                                <tbody>
                                <?php foreach ($this->enableLogin AS $loginValue) { ?>
                                <tr>
                                    <td>
                                        <img src="<?php echo $this->basePath('template/pc/default/img/'.$loginValue.'.png'); ?>" style="width: 36px;">
                                        <?php echo $this->otherLoginTextName[$loginValue]; ?>
                                    </td>
                                    <td>
                                        <?php if ($this->bindUserLogin && in_array($loginValue, $this->bindUserLogin)) { ?>
                                            <a href="<?php echo $this->url('home-user', ['action' => 'deleteAccountBind', 'id' => $loginValue]); ?>" class="btn btn-sm btn-default"><?php echo $this->translate('点击解绑'); ?></a>
                                        <?php } else { ?>
                                            <a href="<?php echo $this->url('shop-user', ['action' => 'otherLogin'], ['query' => ['loginType' => $loginValue]]); ?>" class=" btn btn-sm btn-primary"><?php echo $this->translate('账号绑定'); ?></a>
                                        <?php } ?>
                                    </td>
                                </tr>
                                <?php } ?>
                                </tbody>
                            </table>
                        <?php } ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>